package com.mockingjay.service;

import com.spring.*;

/**
 * @author mockingjay
 * @date 2023/4/29 - 23:58
 */
@Component("userService")
public class UserService implements InitializingBean {

    @AutoWired
    OrderService orderService;

    String name;

    public void setName(String name) {
        this.name = name;
    }

    public void test(){
        System.out.println(orderService);
        System.out.println(name);
    }


    @Override
    public void afterPropertiesSet()  {
        System.out.println("初始化");
    }
}
